import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listDetails(query) {
  return request({
    url: '/medicine/details/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getDetails(id) {
  return request({
    url: '/medicine/details/getDetailInfo',
    method: 'get',
    params: {
      id
    }
  })
}

// 新增【请填写功能名称】
export function addDetails(data) {
  return request({
    url: '/medicine/details/add',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateDetails(data) {
  return request({
    url: '/medicine/details/update',
    method: 'post',
    data: data
  })
}

// 删除【请填写功能名称】
export function delDetails(ids) {
  return request({
    url: '/medicine/details/removeDetailIds',
    method: 'post',
    params: {
      ids
    }
  })
}
